/*
 *              Copyright (C) 2011 The MusicMod Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *            http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.musicmod.plugin.socialize.microblog;

public class Constants {
	public static final String LOG_TAG = "MusicMod.Socialize.Microblog";

	public static final String SHAREDPREFS_NAME = "org.musicmod.plugin.socialize.microblog_preferences";

	public static final int PROCESS_START = 1;
	public static final int PROCESS_STOP = 2;
	public static final int CREDENTIALS_SAVED = 3;
	public static final int FINISH_ACTIVITY = 4;

	public static final String KEY_ENABLE = "enable";
	public static final String KEY_POST_WIFI = "post_wifi";
	public static final String KEY_API_BASE = "api_base";
	public static final String KEY_AUTHORIZE = "authorize";
	public static final String KEY_SIGN_OUT = "sign_out";
	public static final String KEY_STATUS_FORMAT = "status_format";
	public static final String KEY_POSTING_INTERVAL = "posting_interval";
	public static final String KEY_AUTHORIZATIONS = "authorizations";
	public static final String KEY_USERNAME = "username";
	public static final String KEY_PASSWORD = "password";
	public static final String KEY_NEXT_MILLISECONDS = "next_milliseconds";

	public static final String KEY_LATEST_ARTIST = "latest_artist";
	public static final String KEY_LATEST_ALBUM = "latest_album";
	public static final String KEY_LATEST_TRACK = "latest_track";

	public static final String DEFAULT_LATEST_ARTIST = "Unknown Artist";
	public static final String DEFAULT_LATEST_ALBUM = "Unknown Album";
	public static final String DEFAULT_LATEST_TRACK = "Unknown Track";

	public static final String DEFAULT_POSTING_INTERVAL = "60";
	public static final String DEFAULT_USERNAME = "none";
	public static final String DEFAULT_PASSWORD = "none";
	public static final int MAX_STATUS_LENGTH = 140;

	public static final String DEFAULT_API_BASE = "http://identi.ca/api";

	public static final String STATUSES_UPDATE_ENDPOINT(String api_base) {
		return api_base + "/statuses/update.xml";
	}

	public static final String PUBLIC_TIMELINE_ENDPOINT(String api_base) {
		return api_base + "/statuses/public_timeline.xml";
	}

}